//
//  ImageView.swift
//  BaseModule_Example
//
//  Created by seven on 2020/7/2.
//  Copyright © 2020 CocoaPods. All rights reserved.
//

import UIKit

public extension UIImageView {
    class func withImage(_ image: UIImage?, frame fm: CGRect?) -> Self {
        let imageView = self.init()
        imageView.image = image
        if let _fm = fm {
            imageView.frame = _fm
        }
        return imageView
    }
}
